<?php

namespace app\admin\validate;

use app\common\lib\Captcha;
use think\Validate;

class Leadership extends Validate
{
    protected $rule = [
        'id' => 'require',
        'name' => 'require',
        'face' => 'require',
        'position' => 'require',
        'type' =>'require'
    ];

    protected $scene=[
        'create'=>['name','face','type','position'],
        'update'=>['id','name','face','type','position'],
    ];

    protected $message = [
        'id' => 'ID不能为空',
        'name' => '姓名不能为空',
        'position' => '职务不能为空',
        'face' => '照片必须上传',
        'type' => '领导分类不能为空',
    ];
}
